<?php
echo $this->Form->create('NhanVien', array('action' => 'edit'));
?>
<script>
    $(function () {
        $("#datepicker").datepicker();
    });
</script>

<fieldset>
    <legend><label>Cập nhật thông tin nhân viên</label></legend>
    <?php echo $this->Form->input('id', array('type' =>'hidden'));?>

    <dl>
        <dt><label>Chức vụ</label></dt>
        <dd><?php echo $this->Form->input('MACV', array('type' => 'select', 'label' => false, 'options' => $cvu)); ?></dd>
    </dl>
    <dl>
        <dt><label>Tên nhân viên</label></dt>
        <dd><?php echo $this->Form->input('TENNV', array('label' => false));?></dd>
    </dl>
    <dl>
        <dt><label>Ngày sinh</label></dt>
        <!--<dd><?php /*echo $this->Form->input('NAMSINH', array('id' => 'datepicker', 'type' => 'text','label' => false, 'readonly' => 'readonly'));*/?></dd>-->
        <dd><?php echo $this->Form->input('NAMSINH', array('label' => false, 'readonly' => 'readonly'));?></dd>
    </dl>
    <dl>
        <dt><label>Giới tính</label></dt>
        <dd><?php $option = array('Nam' => 'Nam', 'Nữ' => 'Nữ');
            echo $this->Form->input('GIOITINH', array('label' => false, 'type' => 'select', 'options' => $option));?></dd>
    </dl>
    <dl>
        <dt><label>Điện thoại</label></dt>
        <dd><?php echo $this->Form->input('SODT', array('label' => false));?></dd>
    </dl>
    <dl>
        <dt><label>Email</label></dt>
        <dd><?php echo $this->Form->input('EMAIL', array('label' => false));?></dd>
    </dl>
    <dl>
        <dt><label>Địa chỉ</label></dt>
        <dd><?php echo $this->Form->input('DIACHINV', array('label' => false));?></dd>
    </dl>
</fieldset>
<div class="button">
    <?php
    echo $this->Form->submit('Lưu', array('div' => false));
    echo $this->Html->Link('Hủy', array('action' => 'index'), array('class' => 'cancel'));
    echo $this->Form->end();
    ?>
</div>